package com.appointment.pay.config;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;

@Configuration
@EnableAutoConfiguration
@ComponentScan(basePackages = "com.appointment.pay")
@ImportResource({"classpath:quartz.xml"})
@PropertySource(value="classpath:config.properties")
public class PayTaskConfiguration extends SpringBootServletInitializer {
	
    public static void main(String[] args) {
        SpringApplication.run(PayTaskConfiguration.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(PayTaskConfiguration.class);
    }
}
